{include file="public/nheader" /}
<style type="text/css">
    #container {
        min-width: 100px;
        min-height: 300px;
    }
    #tys img{max-width: 100%!important;}
</style>
<script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=2AEBZ-YK23W-XISR6-ROOGV-VOLI7-46FFT"></script>
<div class="layui-fluid layui-bg-white">
    <form action="{:url()}" class="layui-form layui-form-fixed">
        <div class="layui-form-item">
            <label class="layui-form-label">
                <font color="red">* </font>品牌名称
            </label>
            <div class="layui-input-block">
                <input type="text" name="nickname" required="" lay-verify="required" autocomplete="off"
                    class="layui-input" value="{$row.nickname|default=''}" placeholder="请填写品牌名称">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                <font color="red">* </font>账号
            </label>
            <div class="layui-input-block">
                <input type="text" name="accounts" required="" lay-verify="required" autocomplete="new-password"
                    class="layui-input" value="{$row.accounts|default=''}" placeholder="请填写商家账号">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                <font color="red">* </font>起送金额
            </label>
            <div class="layui-input-block">
                <input type="number" name="sendmoney" required="" lay-verify="required" autocomplete="new-password"
                    class="layui-input" value="{$row.sendmoney|default=''}" placeholder="请填写起送金额">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                登录密码
            </label>
            <div class="layui-input-block">
                <input type="password" name="password" autocomplete='new-password' class="layui-input"
                    placeholder="请登录密码">

            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                关于我们
            </label>
            <div class="layui-input-block" id="tys">
                <input type="text" id="detail" name="detail" required="" lay-verify="required" autocomplete="new-password"
                    class="layui-input" value="{$row.detail|default=''}" placeholder="关于我们">
            </div>
        </div>
        <div class="layui-footer layui-form-item layui-center ">
            <input type="hidden" value="{$row['id']|default='0'}" name="id" />
            <button class="layui-btn" lay-filter="submitIframe" type="button" lay-submit>提交</button>
            <button class="layui-btn layui-btn-primary" type="button" sa-event="closeDialog">取消</button>
        </div>
    </form>
</div>
{include file="public/nfooter" /}
<script>
    layui.use(['form', 'jquery', 'admin', 'content'], function () {
        var form = layui.form;
        var admin = layui.admin;
        var jquery = layui.jquery;

        // 渲染富文本编辑器
        var content = layui.content;
        console.log(content);
        content.tinymce('detail');
    });
</script>